package com.zdkj.subway.support.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zdkj.subway.support.dto.out.OperateLogDetailDTO;
import com.zdkj.subway.support.entity.SwStOperateLog;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 票务日志表
 *
 * @author cui_com
 * @date 2020-01-08 17:21:51
 */
public interface SwStOperateLogMapper extends BaseMapper<SwStOperateLog> {
    /**
     * 查找详细信息
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<OperateLogDetailDTO> queryDetailByPage(
            IPage page,
            @Param(Constants.WRAPPER) Wrapper queryWrapper);

    /**
     * 根据日志设置进行归档
     *
     * @param endDateTime
     * @return
     */
    Integer recordLogByLogSet(@Param("endDateTime") LocalDateTime endDateTime);

    /**
     * @param listIds
     * @return
     */
    Integer recordLogByIds(@Param("listIds") List<Integer> listIds);
}
